package state.pattern.demo;

/**
 * Created by DELL
 * Date: 2019/10/11.
 * Time: 10:10
 */
public class On extends RemoteControl {
    @Override
    public void pressSwith(TV context) {
        System.out.println("I am off,Going to be on now");
        context.setState(new Off());
    }
}
